/******************************************************************************
* File description: SettingModelConfigHunHeUI.h
* Function: 模型配置：混合判定
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-08-19
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
#ifndef SettingModelConfigHunHeUI_H
#define SettingModelConfigHunHeUI_H

#include <QObject>
#include <QQuickWidget>
#include <QQmlContext>

class SettingModelConfigHunHeUI : public QQuickWidget
{
    Q_OBJECT

    const QHash<QString, QString> hunhe = {{"R1", "1.35"}, {"R2", "1.5"}, {"R3", "1.65"}, {"X1", "0.003"}};
    const QVector<QString> hunheHeader = {"R1", "R2", "R3", "X1"};

public:
    SettingModelConfigHunHeUI();
    ~SettingModelConfigHunHeUI();

signals:
    // 发给qml

private slots:
    // qml槽函数
    void onCancel(); // 取消

public:
    QQmlContext* getContext() const; // 获取qmlcontext
    QObject* getRootObject() const; // 获取rootObject

    // 页面显示
    void hunheShow();

private:
    // 数据转换

private:
    QObject *_rootObj;
    QQmlContext *_rootContext;
};

#endif // SettingModelConfigHunHeUI_H
